/**
 * 支付课程--native下单
 * @param {*} body
 * @returns
 */
export const useCreateNativeApi = (opid,paymethod='weixin',mode="course") => {
    return useHttpPost(`/v1/pay/${mode}/${paymethod}/native/${opid}`,{})
}

/**
 * 支付课程--根据业务编号查单
 * @param {*} body
 * @returns
 */
export const useFindNativeByTradeNoApi = (tradeNo,opid,paymethod='weixin',mode="course") => {
    return useHttpPost(`/v1/pay/${mode}/${paymethod}/native/success?tradeno=${tradeNo}&opid=${opid}`,{})
}

/**
 * 支付充值--native下单
 * @param {*} body
 * @returns
 */
export const useCreateNativeCoinApi = (coin,paymethod='weixin',mode="coin") => {
    return useHttpPost(`/v1/pay/${mode}/${paymethod}/native/coin/${coin}`,{})
}

/**
 * 支付充值--根据业务编号查单
 * @param {*} body
 * @returns
 */
export const useFindNativeByTradeNoCoinApi = (tradeNo,paymethod='weixin',mode="coin") => {
    return useHttpPost(`/v1/pay/${mode}/${paymethod}/native/coin/success?tradeno=${tradeNo}`,{})
}

/**
 * 支付升级身份--native下单
 * @param {*} body
 * @returns
 */
export const useCreateNativeVipApi = (opid,paymethod='weixin',mode="vip") => {
    return useHttpPost(`/v1/pay/${mode}/${paymethod}/native/vip/${opid}`,{})
}


/**
 * 支付升级身份--根据业务编号查单
 * @param {*} body
 * @returns
 */
export const useFindNativeByTradeNoVipApi = (tradeNo,vipId,paymethod='weixin',mode="vip") => {
    return useHttpPost(`/v1/pay/${mode}/${paymethod}/native/vip/success?tradeno=${tradeNo}&vipId=${vipId}&type=vip`,{})
}


/**
 * 支付专题明细--native下单
 * @param {*} body
 * @returns
 */
export const useCreateNativeSpecialBindApi = (bindId,speicalId,paymethod='weixin',mode="specialbind") => {
    return useHttpPost(`/v1/pay/${mode}/${paymethod}/native/${speicalId}/${bindId}`,{})
}

/**
 * 支付课程--根据业务编号查单
 * @param {*} body
 * @returns
 */
export const useFindNativeByTradeNoSpecialBindApi = (tradeNo,bindId,speicalId,paymethod='weixin',mode="specialbind") => {
    return useHttpPost(`/v1/pay/${mode}/${paymethod}/native/success?tradeno=${tradeNo}&opid=${bindId}&specialId=${speicalId}`,{})
}